package com.dcrzl.gazgmh.common.entity.sys;

import com.baomidou.mybatisplus.annotation.*;
import com.dcrzl.gazgmh.common.utils.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;


/**
 * 系统日志
 *
 * @author dcrzl
 * @email 1728795786@qq.com
 * @date 2025-01-20 14:52:40
 */
@Data
@TableName("t_sys_log")
@Accessors(chain = true)
public class SysLog extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;
    /**
     * 用户操作
     */
    @TableField(value = "operation")
    private String operation;
    /**
     * 请求方法
     */
    @TableField(value = "method")
    private String method;
    /**
     * 请求参数 操作日志生效
     */
    @TableField(value = "params")
    private String params;
    /**
     * 登录日志生效
     */
    @TableField(value = "login_name")
    private String loginName;
    /**
     * 执行时长(毫秒)
     */
    @TableField(value = "time")
    private Long time;
    /**
     * IP地址
     */
    @TableField(value = "ip")
    private String ip;
    /**
     * 0代表登录1代表操作
     */
    @TableField(value = "type")
    private Integer type;
    /**
     * 登录日志生效
     */
    @TableField(value = "login_status")
    private Integer loginStatus;

    @TableField(value = "login_msg")
    private String loginMsg;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    /**
     *
     */
    @TableField(value = "status", fill = FieldFill.INSERT)
    private Integer status;
    /**
     *
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

}
